package xcmg.device.dao.mapper.threeGuaranteesPur;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.threeGuaranteesPur.ThreeGuaranteesOutBarcodeDO;

import java.util.List;

@Mapper
public interface ThreeGuaranteesOutBarcodeMapper {

    int addBarcodeRecord(ThreeGuaranteesOutBarcodeDO barcodeDO);

    void batchInsert(@Param("barcodes") List<ThreeGuaranteesOutBarcodeDO> barcodes);

    void batchUpdate(@Param("barcodes") List<ThreeGuaranteesOutBarcodeDO> barcodes);

    List<ThreeGuaranteesOutBarcodeDO> getByOutDetailId(@Param("detailId") String detailId);

    List<ThreeGuaranteesOutBarcodeDO> getBydetailIds(@Param("detailIds") List<String> detailIds);

    List<ThreeGuaranteesOutBarcodeDO> getByGuaranteesOutNo(@Param("guaranteesOutNo") String guaranteesOutNo);
}
